package org.ssmd3.dao;

import org.springframework.stereotype.Repository;
import org.ssmd3.pojo.News;


import java.util.List;

@Repository("newsMapper")
public interface NewsMapper {
    int save(News news);
    int update(News news);
    News getOneNews(int id);

    int getRecordCount(News news);
    List<News> getNewsListByPage(News news);
    List<News> getTopNewsList();

    int delete(int id);
    int deleteAll(String[] ids);
}
